package com.zlc.workflow.core.instance.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
@ApiModel
public class BuildFlowParam {

    @ApiModelProperty(value = "流程定义ID")
    private String processId;

    @ApiModelProperty(value = "流程实例ID")
    private String processInstanceId;

    @ApiModelProperty(value = "操作人")
    private String account;

    @ApiModelProperty(value = "变量属性值")
    private Map<String,Object> formData;

    public Map<String, Object> getFormData() {
        if(this.formData == null){
            this.formData = new HashMap<>();
        }
        return this.formData;
    }
}
